#!/usr/bin/python3
# -*- coding: UTF-8 -*-
from functools import reduce
import os
print(os.path.abspath('String.py'))
a = True
print(type(a))
print(id(a))

b = 0 and 19
print(b)



name = 'sharp'
print('hello world my name is ' + name)

if len(name) > 6:
    print('name length more than 6')
elif len(name) > 3:
    print('name length more than 3')
else:
    print('name length less than 3')


c = [1,2,3,4]

print(len(c))

cc = map(lambda x : x+1, [1,2,3,4])
print(list(cc))


dd = reduce(lambda x,y: x+y, [1,2,3,4])
print(dd)

abc = open('E:/abc.txt','r')
print(abc.name)
while True:
    str = abc.readline()
    print(str)
    if len(str) == 0:
        abc.close()
        break

